package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import feign.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ApArticleMapper extends BaseMapper<ApArticle> {
//一个方法支持三个，所以用集合
 //加载类型代表小于 minBehotTime  2代表大于maxBehotTime
 List<ApArticle> loadArticle(@Param("dto") ArticleHomeDto dto,@Param("loadType") Integer loadType);

}